<include file="Public:top" />
<div id="main" class="" >
<div class="content">
<div id="result" class="result none"></div>
<div class="title">编辑资料</div>
<div class="fLeft" style="width:90%;float:left">
<form method='post'  id="form1" >
<table cellpadding=3 cellspacing=3>
<tr>
	<td class="tRight" >显示名：</td>
	<td class="tLeft" ><input type="text" class="large bLeft"  name="nickname" value="{$vo.nickname}"></td>
</tr>
<tr>
	<td class="tRight" >电话号码：</td>
	<td class="tLeft" ><input type="number" class="large bLeft" name="phoneNO" value="{$vo.phoneNO}"></td>
</tr>
<tr>
	<td class="tRight">Email：</td>
	<td class="tLeft"><input type="email" class="large bLeft"  name="email" value="{$vo.email}"></td>
</tr>
<tr>
	<td class="tRight tTop">备  注：</td>
	<td class="tLeft"><TEXTAREA class="large bLeft"  name="remark" rows="5" cols="57">{$vo.remark}</textarea></td>
</tr>
<tr>
	<td></td>
	<td class="center">
	<input type="hidden" name="id" value="{$vo.id}">
	<input type="hidden" name="ajax" value="1">
	<input type="button" value="保 存" onclick="save()" class="submit small">
	<input type="reset" class="small submit hMargin" value="清 空" >
	</td>
</tr>
</table>
</form>
</div>
</div>
</div>
<include file="Public:footer" />
<script language="JavaScript">
function save(){
    var inputs = $("#form1 :input").validator({ lang: 'zh',position: 'right left',offset: [-12, 0],message: '<div><em/></div>' });
    if(inputs.data("validator").checkValidity()){
		var queryString = $('#form1').serialize();
		$.post('__URL__/change/',queryString,function(data){
			$.messager.show({
				title:'提示信息',msg:data.info,timeout:2000,showType:'slide'
			});
		},'json')	
	}
	
}
</script>